package com.bluesky.objectworld.exception;

import org.apache.commons.lang3.StringUtils;

public class UnkownMessageException extends RuntimeException {

	public UnkownMessageException(String name) {
		super("Unknown message name: " + name);
	}

	public UnkownMessageException(String name, String[] parameters) {

		super("Unknown message parameters: " + name + "("
				+ StringUtils.join(parameters) + ")");
	}

	public UnkownMessageException(String name, String parameter) {

		super("Unknown message parameters: " + name + "("
				+ parameter + ")");
	}

}
